package cn.yj.core.business.service.iservice;

import cn.yj.cgs.dba.entity.UserAddress;
import cn.yj.common.baseDao.MpIService;

/**
 * @author 永健
 * @since 2021-05-09 14:06
 */
public interface IUserAddressService extends MpIService<UserAddress> {
    boolean exitsById(Integer id);

    boolean addAddress(UserAddress userAddress);

    boolean updateAddress(UserAddress userAddress);

    boolean updateDefault(Integer id,Boolean isDefault);

    UserAddress getDefaultAddr(String userCode);
}
